import { createStore } from 'vuex'
import createPersistedstate from 'vuex-persistedstate'

export default createStore({
  state: {
    arr:[]
  },
  mutations: {
    ads(state,obj){
      state.arr.push(obj);
    }
  },
  actions: {
  },
  modules: {
  },
  plugins:[
    createPersistedstate({
      key: 'saveInfo',
      paths: ['arr']
    })
  ]
})
